import request from '@/utils/request'

// 查询汇报记录列表
export function listData(query) {
    return request({
        url: '/records/data/list',
        method: 'get',
        params: query
    })
}

// 查询汇报记录详细
export function getData(id) {
    return request({
        url: '/records/data/' + id,
        method: 'get'
    })
}

// 新增汇报记录
export function addData(data) {
    return request({
        url: '/records/data',
        method: 'post',
        data: data
    })
}

// 修改汇报记录
export function updateData(data) {
    return request({
        url: '/records/data',
        method: 'put',
        data: data
    })
}

// 删除汇报记录
export function delData(id) {
    return request({
        url: '/records/data/' + id,
        method: 'delete'
    })
}
